package com.lb.entity;

/**
 * @ClassName Car
 * @Author LB
 * @Date 2021/12/27 9:18
 **/
public class Car {
    public static void main(String[] args) {
        Car car1 = new Car();
        Car car2 = new Car();
        Car car3 = new Car();

        System.out.println(car1.hashCode());
        System.out.println(car2.hashCode());
        System.out.println(car3.hashCode());

        Class<? extends Car> aClass = car1.getClass();
        ClassLoader classLoader = aClass.getClassLoader();
        System.out.println(classLoader);//AppClassLoader
        System.out.println(classLoader.getParent());//ExtClassLoader jre1.8.0_91\lib\ext
        System.out.println(classLoader.getParent().getParent());//null 1.不存在 2.java程序获取不到 rt.jar
    }
}